<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>后台管理系统</title>
    <meta name="author" content="DeathGhost"/>
    <link rel="stylesheet" type="text/css" href="/admin/css/style.css">
    <!--[if lt IE 9]>
    <script src="/admin/js/html5.js"></script>
    <![endif]-->
    <script src="/admin/js/jquery.js"></script>
    <script src="/admin/js/jquery.mCustomScrollbar.concat.min.js"></script>
    <script>
        (function ($) {
            $(window).load(function () {

                $("a[rel='load-content']").click(function (e) {
                    e.preventDefault();
                    var url = $(this).attr("href");
                    $.get(url, function (data) {
                        $(".content .mCSB_container").append(data); //load new content inside .mCSB_container
                        //scroll-to appended content 
                        $(".content").mCustomScrollbar("scrollTo", "h2:last");
                    });
                });

                $(".content").delegate("a[href='top']", "click", function (e) {
                    e.preventDefault();
                    $(".content").mCustomScrollbar("scrollTo", $(this).attr("href"));
                });

            });
        })(jQuery);
    </script>
</head>

<body>
<!--header-->
<header>
    <div th:replace="admin/topBar::heater"></div>
</header>
<!--aside nav 开始-->

<aside class="lt_aside_nav content mCustomScrollbar">
    <div th:replace="admin/leftBar::left"></div>
</aside>
<!--aside nav结束-->

<section class="rt_wrap content mCustomScrollbar">
    <div class="rt_content">
        <div class="page_title">
            <h2 class="fl">修改密码</h2>
        </div>
        <table class="table">
            <tr>
                <th>管理员账号</th>
                <th>管理员密码</th>
                <th>操作</th>
            </tr>
            <tr>
                <td th:text="${session.Admin.adminAccount}" class="center">admin</td>
                <td th:text="${session.Admin.adminPassword}" class="center">123456</td>
                <td class="center">
                    <script>
                        $(document).ready(function () {
                            //弹出文本性提示框
                            $("#showPopTxts").click(function () {
                                $(".pop_bgs").fadeIn();
                            });
                            //弹出：确认按钮
                            $(".trueBtns").click(function () {
                                $(".pop_bgs").fadeOut();
                            });
                            //弹出：取消或关闭按钮
                            $(".falseBtns").click(function () {
                                $(".pop_bgs").fadeOut();
                            });
                        });
                    </script>
                    <section class="pop_bgs">
                        <div class="pop_cont">
                            <h3>修改密码</h3>
                            <form action="/Admin/UpdateAdmin" method="post">
                                <!--content-->
                                <div class="pop_cont_input">
                                    <li>
                                        <span>管理员账号</span>
                                        <label>
                                            <input name="adminAccount" th:value="${session.Admin.adminAccount}" readonly="readonly"  type="text"/>
                                        </label>
                                    </li>
                                    <li>
                                        <span class="ttl">管理员密码</span>
                                        <label>
                                            <input name="adminPassword" th:value="${session.Admin.adminPassword}" type="password">
                                        </label>
                                    </li>
                                </div>
                                <!--bottom:operate->button-->
                                <div class="btm_btn">
                                    <input type="submit" value="修改" class="input_btn trueBtns"/>
                                    <input type="button" value="关闭" class="input_btn falseBtns"/>
                                </div>
                            </form>
                        </div>
                    </section>
                    <a id="showPopTxts" title="修改" class="link_icon">&#101;</a>
                </td>
            </tr>
        </table>
    </div>
</section>
</body>

</html>